Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSLUX-608: Use webpack uglify plugin #3079

Closed
wants to merge 1 commit into from
Closed

Conversation

tkohr
Copy link
Contributor

@tkohr tkohr commented Jul 31, 2023

PR removes HardSourceWebpackPlugin and reactivates UglifyJsPlugin to minify prod js.

HardSourceWebpackPlugin makes build run out of memory when using UglifyJsPlugin for prod and seems to cause further problems in dev mode.

Edit: It seems to be the bundling of the two ol instances that actually cause the out of memory error with UglifyJsPlugin and not the HardSourceWebpackPlugin. So this PR depends on a lib version without ol. However, using such a version in v3 currently still causes conflicts between mapbox/maplibre. They must be resolved here or within the 3D PR first.

@AlitaBernachot
Copy link
Contributor

Working good, thx!

But shouldn't we keep the HardSourceWebpackPlugin?

@tkohr tkohr force-pushed the GSLUX-608-uglify branch from f3b70af to fd71636 Compare August 3, 2023 13:18
@tkohr
Copy link
Contributor Author

tkohr commented Aug 3, 2023

You're right, I've removed the commit to get rid of the HardSourceWebpackPlugin here, as it is finally unrelated.

So we should wait to merge this PR until we use a v4 lib version without ol.

@AlitaBernachot AlitaBernachot self-requested a review October 9, 2023 12:56
Copy link
Contributor

@AlitaBernachot AlitaBernachot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: did not succeed to build the app, approving anyway.
I hope the issue is coming from my dev env.

@tkohr
Copy link
Contributor Author

tkohr commented May 23, 2024

Closing this, having been superseeded by #3143

@tkohr tkohr closed this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants